package com.cssiot.scala.dao.impl

import org.springframework.stereotype.Repository

import com.cssiot.common.dao.impl.BaseDaoImpl
 

import javax.persistence.Entity
import javax.persistence.Table
import org.springframework.transaction.annotation.Transactional
import org.springframework.transaction.annotation.Propagation
import com.cssiot.scala.dao.inf.GzzInfoTestDao
import com.cssiot.scala.entity.Gzz01InfoTest

@Repository("gzzInfoTestDao")
class GzzInfoTestDaoImpl extends BaseDaoImpl[Gzz01InfoTest] with GzzInfoTestDao{
  //重写方法加上orm事务
 @Transactional(propagation=Propagation.REQUIRED)
   override def add(o:Gzz01InfoTest){
        println("GzzInfoTestDaoImpl.save")
        this.saveObject(o)
    }
   
}

 